package com.hjl.mapper;

import com.hjl.model.User;
import org.springframework.data.annotation.Id;

import java.util.List;
import java.util.Map;

/**
 * @author ServivE
 * @version 0.1
 * @className IUserMapper
 * @description
 * @date 2024/8/21 11:04
 * @since jdk17
 */
public interface UserMapper {
    List<User> queryAll();

    /**
     * 模糊查询匹配的用户列表
     * @param user
     * @return
     */
    List<Object> getLikeUsers(Map<String, Object> user);

    /**
     * 模糊查询匹配的用户数量
     * @param user
     * @return
     */
    Integer getLikeUsersCount(Map<String, Object> user);

    //新增用户
    int addUser(User user);

    //修改



    //删除
    int delUser(int id);

    User getUser(User user);
    void editUser(User user);
}
